import { http } from "@/utils/http";
import httpConfig from "@/utils/http/httpConfig";
// 岗位列表
export function postLists(params?: any) {
  return http.get(httpConfig.system + "/post/list", { params });
}
// 岗位列表
export function postAll(params?: any) {
  return http.get(httpConfig.system + "/post/optionselect", {});
}

// 添加岗位
export function postAdd(params: any) {
  return http.post(httpConfig.system + "/post", { data: params });
}

// 编辑岗位
export function postEdit(params: any) {
  return http.post(httpConfig.system + "/post/edit", { data: params });
}

// 删除岗位
export function postDelete(params: any) {
  return http.post(httpConfig.system + "/post/del?postIds=" + params, {});
}

// 岗位详情
export function postDetail(params: any) {
  return http.get(httpConfig.system + "/post/" + params, {});
}
